<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>articleItem</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <link rel="stylesheet" href="/blog4/css/item.css" type="text/css"></link>
  </head>
  
  <body class="body">
  
  <jsp:include page="/WEB-INF/jsp/head.jsp"></jsp:include>
   <div class=mainContent>
   	<div class="forFlow">
   		<div class="post_detail">
   			<h3 class="title"><span >${article.articleTitle }</span></h3><br/>
   			<span>${article.articleContent }</span>
   		</div>
   		<div class="comment">
   			<form action="##">
   				<input type="text" name="commentContent" placeholder="请说点什么。。。">
   				<button ><span>回复</span></button>
   			</form>
   			
   		</div>
   		<div class="comment_form">
   			<c:forEach items="${article.comments }" var="comment">
   			<div class="comment_info">
   			<hr/>
   				<span>用户${comment.user.userName }评论：</span>
   				<span>${comment.commentContent }</span><br>
   				
   			</div>
   				
   			</c:forEach>
   		</div>
   	</div>
   	
   </div>
  </body>
</html>
